package 多态.多态的综合练习;

public class Test {
    public static void main(String[] args) {
        Person p=new Person("老王",20);
        Dog d=new Dog(2,"黑");
        p.keepPet(d,"屎");

        Cat c=new Cat(2,"白");
        p.keepPet(c,"屎");
    }


}
